package com.springboot.cloud.sysadmin.organization.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.cloud.common.web.service.BasicsService;
import com.springboot.cloud.sysadmin.organization.entity.param.DictTypeQueryParam;
import com.springboot.cloud.sysadmin.organization.entity.po.DictType;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
public interface IDictTypeService extends IService<DictType>, BasicsService {

    /**
     * 新增字典类型
     *
     * @param dictType
     * @return true为新增成功
     */
    boolean add(DictType dictType);

    /**
     * 根据id删除字典给类型
     *
     * @param ids
     */
//    boolean delete(Set<String> ids);

    /**
     * 获取字典类型
     *
     * @param id
     * @return
     */
    DictType getDictType(String id);

    boolean get(String id);

    /**
     * 查询字典类型
     *
     * @return
     */
    IPage<DictType> query(Page page, DictTypeQueryParam dictTypeQueryParam);

    /**
     * 更新字典类型
     *
     * @param dictType
     */
    boolean update(DictType dictType);

}
